﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BackupandRestore .aspx.cs"
    Inherits="Assessment.Management.UI.Admin.BackupandRestore" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <center>
            <table cellpadding="2" cellspacing="1" border="1" style="border-collapse: collapse;">
                <tr>
                    <th style="background-color: #e0e0e0;">
                        Sao lưu và phục hồi dữ liệu
                    </th>
                </tr>
                <tr>
                    <td align="Center">
                        Danh sách bảng
                    </td>
                </tr>
                <tr>
                    <td align="Center">
                        <asp:ListBox ID="ListBox1" runat="Server" DataTextField="table_name" DataValueField="table_name"
                            Height="186px" Width="171px"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td align="Center">
                        <span onclick="return confirm('bạn có muốn sao lưu bảng được chọn?')">
                            <asp:Button ID="btnBackup" runat="Server" Text="Backup" OnClick="BackUpNow" />
                        </span><span onclick="return confirm('Are you sure to restore selected table?')">
                            <asp:Button ID="btnRestore" runat="Server" Text="Restore" OnClick="RestoreNow" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td align="Center">
                        <span onclick="return confirm('Bạn có muốn sao lưu CSDL FormManager?')">
                            <asp:Button ID="btnBackupAll" runat="Server" Text="BackupAll" OnClick="BackUpAllNow" />
                        </span><span onclick="return confirm('Are you sure to restore selected table?')">
                            <asp:Button ID="btnRestoreAll" runat="Server" Text="RestoreAll" OnClick="RestoreNowAll" />
                        </span>
                    </td>
                </tr>
            </table>
            <asp:Label ID="lblMessage" runat="Server" EnableViewState="False" ForeColor="Blue"></asp:Label>
        </center>
    </div>
    </form>
</body>
</html>
